<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <title>TEST</title>
</head>

<body id="full-screen">

<div class="bg"></div>

<div class="main">
    <div id="page-content">
        <div class="page2">
            <div class="counttime"></div>
            <div class="tips">请稍等，正在连接 。。。</div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/shake/screen/assets/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/shake/screen/assets/js/base.js"></script>
<script type="text/javascript" src="/shake/common/js/alpaca-spa-2.0.js"></script>
<script type="text/javascript" src="/shake/screen/screen.js"></script>
<script type="text/javascript" src="/shake/screen/controller/index.js"></script>
<script type="text/javascript">
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r   = window.location.search.substr(1).match(reg);
        if (r != null) {
            return (r[2]);
        }
        return null;
    }
</script>

<script type="text/javascript">

    //定义常量
    var G_URL = "http://" + window.location.host;                   //* 服务器地址 */
    var WS_URL = "ws://" + window.location.host + ":8082";          //* web-socket 地址 */
    var WS = null;

    var ACTIVITY_ID = GetQueryString('activity_id');                //* 活动ID */
    var ITEM_ID = null;                                             //* 活动项目ID */
    var ITEM_COUNT = 0;                                             //* 活动项目次数 */

    $(function () {
        Alpaca.Config.baseUrl = "/ws/";   //alpaca-spa根路径
        Alpaca.run("#/screen/index/login");
    });
</script>

</body>

</html>